package com.sfac.springBoot.modules.common.vo;

public class Result<T> {
    private int status;
    private String message;
    private T object;

    public Result() {
    }

    public Result(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Result(Integer status, String message, T object) {
        this.status = status;
        this.message = message;
        this.object = object;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getObject() {
        return object;
    }

    public void setObject(T object) {
        this.object = object;
    }
    public enum ResultStatus{
        SUCCESS(200),
        ERROR(500)
        ;
        public int code;
        ResultStatus (int code){
            this.code=code;
        }
    }
}
